// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Item {
    property string name_source: " "
    property ListModel myModel : jsonModel.model
    JSONListModel {
        id: jsonModel
        source: name_source
        query: "*"
    }
    Rectangle{
        anchors.fill: parent

        ListView{
            id: list
            anchors.fill: parent
            model: myModel
                /*ListModel{
                ListElement {
                    entreprise: "Apple"
                    montant: 2.45
                }
                ListElement {
                    entreprise: "Orange"
                    montant: 3.25
                }
                ListElement {
                    entreprise: "Banana"
                    montant: 1.95
                }
            }*/
            delegate:ListDelegate{

            }
        }

    }
    Component.onCompleted: name_source="http://beter.hd.free.fr:1723/ERP/request_2.php"
}
